package com.lyf.scm.admin.domain.remote.allocationservice;

import com.lyf.scm.admin.api.dto.OtherTargetGeneralQueryDTO;
import com.lyf.scm.admin.domain.remote.allocationservice.dto.OtherTargetEchartResultDTO;
import com.lyf.scm.admin.domain.remote.allocationservice.dto.OtherTargetResultDTO;
import com.rome.arch.core.clientobject.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 其它指标通用处理类
 *
 * @author wangchlei
 * @date 2020/11/12
 */
@FeignClient(name = "scm-plan-service")
public interface OtherTargetGeneralHandlerRemote {
    @PostMapping("/api/v1/otherTargets/query")
    Response<List<OtherTargetResultDTO>> getNecessaryOtherTargets(@RequestBody OtherTargetGeneralQueryDTO otherTargetGeneralQueryDTO);

    @PostMapping("/api/v1/otherTargets/echartQuery")
    Response<List<OtherTargetEchartResultDTO>> getEchartNecessaryOtherTargets(@RequestBody OtherTargetGeneralQueryDTO otherTargetGeneralQueryDTO);
}
